<?php

namespace App\Models;
class Flow extends Base
{
    const TYPE_MATERIAL = 1;
    const TYPE_APPOINT = 2;
    const TYPE_WITHDRAW = 3;

    const PAY_TYPE_HONEY = 1;
    const PAY_TYPE_CASH = 2;

    protected $appends = ['amount_yuan'];


    public function getAmountYuanAttribute() {
        return format_yuan($this->amount);
    }

}
